<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div class="fui-tab fui-tab-danger">
				<a ng-class="{'external active':pagedata.params.type == '0'}" href="javascript:" ng-click="pagedata.params.type='0';tool.get_list('jy_jifee/index/getlist/',true);">我的账本</a>
				<a ng-class="{'external active':pagedata.params.type == '1'}" href="javascript:" ng-click="pagedata.params.type='1';tool.get_list('jy_jifee/index/getlook/',true);">可看账本</a>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>暂时没有任何账本!
			</div>
			<div style="padding:0 0.5rem">
				<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
					<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
						<div class="fui-list-inner">
							<div class='title'>
								<span class="bold">{{item.title}}</span>
								<span class="label label-success">作者：{{item.member.nickname}}</span>
							</div>
							<div class='gray'>{{item.desc}}</div>
							<div class='gray'>{{item.createtime}} <span class='fui-tag fui-tag-red' ng-if="pagedata.params.type != '1'" ng-click="pagedata.item=item;pagedata.showzhuan=true">编辑</span></div>
						</div>
						<div class='fui-list-angle' ng-click="access_json('jy_jifee/item//id='+item.id)">
							<span class='btn btn-danger'>查看 >></span>
						</div>
					</div>
				</div>
			</div>
			<div ng-if="pagedata.params.type != '1'" class="c" style="margin:2rem;">
				<a href="javascript:;" ng-click="pagedata.showzhuan=true" class='btn btn-danger-o external'style="border-radius: 100px;width:  7rem;font-size: .75rem">+添加账本</a>
			</div>
			<div ng-if="pagedata.params.type == '1'" class="c" style="margin:2rem;">
				<a href="javascript:;" ng-click="pagedata.showshare=true" class='btn btn-danger-o external'style="border-radius: 100px;width:  7rem;font-size: .75rem">+共享账本</a>
			</div>
	</div>
</div>
<div ng-if="pagedata.showzhuan" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:{{main.syscolor || '#63BE72'}}">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showzhuan=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:{{main.syscolor || '#63BE72'}}">
				<div class='fui-cell-title c' style="color:#fff">您正在编辑操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="账本名称" ng-model="pagedata.item.title"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-shuru"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="账本描述" ng-model="pagedata.item.desc"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:{{main.syscolor || '#63BE72'}}" ng-click="post(pagedata.item,'jy_jifee/index/post/')">提交</a>
			</div>
		</div>
	</div>
</div>
<div ng-if="pagedata.showshare" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:{{main.syscolor || '#63BE72'}}">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showshare=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:{{main.syscolor || '#63BE72'}}">
				<div class='fui-cell-title c' style="color:#fff">您正在[共享账本]操作
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-dixiaofei" style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="账本ID" ng-model="pagedata.post.pid"></div>
				</div>
				<div class='fui-cell'>
					<div class='fui-cell-label big' style='width:auto;color:#fff'><i class="icon icon-shuru"  style="font-size:0.8rem"></i></div>
					<div class='fui-cell-info'><input type='text' class='fui-input' placeholder="账本查看密码" ng-model="pagedata.post.password"></div>
				</div>
			</div>
			<div class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:{{main.syscolor || '#63BE72'}}" ng-click="post(pagedata.post,'jy_jifee/index/password/')">提交</a>
			</div>
		</div>
	</div>
</div>
<script>
scope.pagedata.geturl='jy_jifee/index/getlist/'
scope.tool.get_list(scope.pagedata.geturl,true);
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.params.type == '1'){
		scope.pagedata.geturl='jy_jifee/index/getlist/'
	}else{
		scope.pagedata.geturl='jy_jifee/index/getlook/'
	}
	scope.tool.get_list(scope.pagedata.geturl);
}
</script>